package cn.ytr.crm.domain;

import com.alibaba.fastjson.JSON;

import java.util.HashMap;

/**
 * 实体类 数据字典目录
 */
public class SystemDictionary extends BaseDomain{

    //字典目录 ID
    private Long id;

    //目录编号
    private String sn;

    //目录标题
    private String title;

    //目录简介
    private String intro;

    //用来返回 json 数据的
    public String getJsonString() {
        HashMap<String, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("title", title);
        map.put("sn", sn);
        map.put("intro", intro);
        return JSON.toJSONString(map);
    }

    // get & set
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }
}